package com.yaoxun.gateway.xo.dto;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class ChannelMsg {

	public static final String ADD = "add";
	
	public static final String UPDATE = "update";
	
	public static final String DEL = "del";
	
	private String action;
	
	private RouterDefinition router;

	public ChannelMsg(String action, RouterDefinition router) {
		super();
		this.action = action;
		this.router = router;
	}

	public ChannelMsg() {
		super();
	}
	
}
